﻿namespace JobButenko.Models.BusinessLogicLayer
{
    using System.Collections.Generic;
    using System.Linq;
    using System.Web.Mvc;

    [Authorize]
    public class RoleRepository
    {
        private readonly JobDataContext dataContext;

        public RoleRepository(JobDataContext dataContext)
        {
            this.dataContext = dataContext;
        }

        public IEnumerable<Role> GetRoles()
        {
            return this.dataContext.Roles.ToList();
        }
    }
}